<template>
  <div class="project">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper"></div>

    <!-- 操作按钮区域 -->

    <el-table border
              v-loading="loading"
              size="small"
              :data="dataSource"
              :header-cell-style="{background:'#eef1f6',color:'#606266'}"
              :default-sort = "{prop: 'inDate', order: 'descending'}">
        <el-table-column prop="companyName" label="领用公司" sortable></el-table-column>
        <el-table-column prop="dueDate" label="归还时间" sortable></el-table-column>
        <el-table-column prop="locationBuilding" label="资产位置" sortable></el-table-column>
        <el-table-column prop="locationFloor" label="楼层" sortable></el-table-column>
        <el-table-column prop="receiver" label="领用人" sortable></el-table-column>
        <el-table-column prop="telphone" label="联系电话" sortable></el-table-column>
        <el-table-column prop="sumPrice" label="资产总值" sortable></el-table-column>
        <el-table-column prop="note" label="备注" sortable></el-table-column>
    </el-table>
    <pagination :total="ipagination.total" :page.sync="ipagination.current" :limit.sync="ipagination.pageSize"
    @pagination="loadData"></pagination>
  </div>
</template>

<script>
  /* eslint-disable */
  import { SingleTableMixins } from '@/mixins/SingleTableMixins'
  import Pagination from '@/components/Pagination'


  export default {
    mixins: [ SingleTableMixins ],
    components: {Pagination},
    name: "receiveRecord",
    data () {
      return{
        ipagination:{
          pageSize: 10,
          current:1,
          total: 0,
        },
        disableMixinCreated:true,
        url:{
          list: `/assetuse/listByMainId`
        }
      }
    },
    created () {

    },
    methods: {
      getDataByMain(id) {
        this.url.list = `/assetuse/listByMainId/${id}`;
        this.loadData(1);
      },
    }
  }
</script>

<style scoped>

</style>
